package nju.software.xkxt.service.model;

/**
 * 用来保存用户登陆信息
 * 
 * @author typ
 * 
 */
public class UserContextModel {
	private Integer userId;
	private String name;
	private String schoolNo;
	private Integer role;

	public UserContextModel(Integer userId, String name, String schoolNo,
			Integer role) {
		super();
		this.userId = userId;
		this.name = name;
		this.schoolNo = schoolNo;
		this.role = role;
	}

	public UserContextModel(UserModel userModel) {
		this.userId = userModel.getUserId();
		this.name = userModel.getName();
		this.schoolNo = userModel.getSchoolNo();
		this.role = userModel.getRole();
	}

	public UserContextModel() {
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSchoolNo() {
		return schoolNo;
	}

	public void setSchoolNo(String schoolNo) {
		this.schoolNo = schoolNo;
	}

	public Integer getRole() {
		return role;
	}

	public void setRole(Integer role) {
		this.role = role;
	}

}
